#include <iostream>
//#include "arrUtil.h"

using namespace std;


int main()
{
    int a[]={1,2,3};
    string str = "hello";
    for(char c:str)
        cout<<c<<endl;
    for(auto i:a)
        cout<<i<<endl;

    string one = "2011 12 04";
    int yy = 1980;
    int mm = 1;
    int dd = 2;
    string yys = to_string(yy);
    string mms = to_string(mm);
    string dds = to_string(("%d02",dd)); // %d02没效果
    string yymmdd = yys+mms+dds;
    printf("dd=%02d\n",dd);
    printf("dds=%s\n",dds.c_str());
    printf("yymmdd = %s\n", yymmdd.c_str());
    string ymd[3]={};
    ymd[0] = yys;
    ymd[1] = mms;
    ymd[2] = dds;

}

